#include <fstream>


long long gcd(long long a, long long b, long long &x, long long &y)
{
	if (a == 0) 
	{
		x = 0;
		y = 1;
		return b;
	}

	long long xx, yy;
	long long d = gcd(b % a, a, xx, yy);
	x = yy - (b / a) * xx;
	y = xx;
	return d;
}

int main()
{
	std::ifstream input("in.txt");
	std::ofstream output("out.txt");

	long long A, B, C;
	while (input >> A >> B >> C)
	{
		long long x, y;
		long long d = gcd(A, B, x, y);
		if (d == 0)
		{
			if (C == 0)
				output << "0 0\n";
			else
				output << "<none>\n";
		}
		else
		{
			if (C % d != 0) 
			{
				output << "<none>\n";
			}
			else
			{
				output << x * (C / d) << " " << y * (C / d) << "\n";
			}
		}
	}
	return 0;
}